package com.fqcar.fqdf.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.fqdf.framework.android.net.response.BaseRespBean;

/**
 * Created by lvsidong on 2017/11/3.
 */

public class ImageEntity extends BaseRespBean implements Parcelable{

    private int dealId;
    private int id;
    private String imgUrl;

    public int getDealId() {
        return dealId;
    }

    public void setDealId(int dealId) {
        this.dealId = dealId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public static Creator<ImageEntity> getCREATOR() {
        return CREATOR;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.dealId);
        dest.writeInt(this.id);
        dest.writeString(this.imgUrl);
    }

    public ImageEntity() {
    }

    protected ImageEntity(Parcel in) {
        this.dealId = in.readInt();
        this.id = in.readInt();
        this.imgUrl = in.readString();
    }

    public static final Creator<ImageEntity> CREATOR = new Creator<ImageEntity>() {
        @Override
        public ImageEntity createFromParcel(Parcel source) {
            return new ImageEntity(source);
        }

        @Override
        public ImageEntity[] newArray(int size) {
            return new ImageEntity[size];
        }
    };
}
